-- material
-- created by limj
-- 道具描述：材料

return {
    -- 获取道具描述
    getDesc = function(itemId, args, para)
        local rank = ItemM.query(itemId, "rank");

        local desc   = getLocStr("script_desc_material1");
        local exDesc = getLocStr("script_desc_material2");
        local rankDesc = "?";

        if rank == 1 then
            rankDesc = string.format("%d%s%d", 1, getLocStr("hyphen"), 2);
        else
            rankDesc = string.format("%d", rank + 1);
        end

        desc = string.format("%s\n%s", desc, string.format(exDesc, rankDesc));

        return desc;
    end,
};
